package com.group01.community.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.group01.community.entity.ZyOwner;
import com.group01.community.entity.vo.ZyOwnerVO;
import com.group01.community.mapper.ZyOwnerMapper;
import com.group01.community.service.ZyOwnerService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;


/**
 * <p>
 * 业主  服务实现类
 * </p>
 *
 * @author iuoly
 * @since 2022-07-04
 */
@Service
public class ZyOwnerServiceImpl extends ServiceImpl<ZyOwnerMapper, ZyOwner> implements ZyOwnerService {

    @Autowired
    private ZyOwnerMapper zyOwnerMapper;


    @Override
    public IPage<ZyOwnerVO> sybase(Long current, Long size, ZyOwnerVO zyOwnerVO) {
        Page<ZyOwnerVO> page = new Page<>(current, size);
        page.setOptimizeCountSql(false);
        return zyOwnerMapper.sybase(page,zyOwnerVO);
    }


}
